import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '@/views/Index.vue'
import Class from '@/views/Class.vue'
import Orders from '@/views/Orders.vue'
import My from '@/views/My.vue'

Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    {
      path: '/index',
      name: 'Index',
      component: Index,
    },
    {
      path: '/class',
      name: 'Class',
      component: Class,
    },
    {
      path: '/orders',
      name: 'Orders',
      component: Orders,
    },
    {
      path: '/my',
      name: 'My',
      component: My,
    },
  ]
})
export default router